<template>
  <div>
    <a-card :bordered="false" style="margin-bottom: 10px">
      <!-- 查询区域 -->
      <a-form-model :label-col="labelCol" :wrapper-col="wrapperCol" @keyup.enter.native="onQuery">
        <a-row>
          <a-col :span="6">
            <a-form-model-item label="计划名称">
              <a-input v-model="queryParam.planName" placeholder="请输入" />
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item label="计划编号">
              <a-input v-model="queryParam.planCode" placeholder="请输入" />
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item label="考核类型">
              <a-select v-model="queryParam.assessmentType" placeholder="请选择" style="width:100%;" allowClear>
                <a-select-option v-for="(item, key) in examinType" :key="key" :value="item.value">{{ item.title }}
                </a-select-option>
              </a-select>
            </a-form-model-item>
          </a-col>
          <a-col :span="6">
            <a-form-model-item label="状态">
              <a-select v-model="queryParam.assessmentType" placeholder="请选择" style="width:100%;" allowClear>
                <a-select-option v-for="(item, key) in examinStatus" :key="key" :value="item.value">{{ item.title }}
                </a-select-option>
              </a-select>
            </a-form-model-item>
          </a-col>
        </a-row>
        <a-row>
          <a-col :span="4">
            <a-form-model-item :wrapper-col="{ offset: 0 }" style="margin-bottom: 0">
              <a-button type="primary" @click="onQuery"> 查询 </a-button>
              <a-button style="margin-left: 10px" @click="onResetForm"> 重置 </a-button>
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
    </a-card>
    <a-card>
      <div class="table-page-content">
        <z-table ref="table" rowKey="id" :showAlert="false" :showSelection="true" :loading="loading"
                 :columns="columns" :dataSource="pageData" @selectedRow="onSelectedRow" @change="onTableChange">
          <!--操作-->
          <template slot="action" slot-scope="text, record">
            <a-button type="link" style="padding: 0" @click.stop="onDetail(record)" v-if="componentName=== 'examCheck' && (fuyiStatus ==='1' || fuyiStatus ==='2')">审核</a-button>
            <a-button type="link" style="padding: 0" @click.stop="onDetail(record)">详情</a-button>
          </template>
        </z-table>
      </div>
    </a-card>
  </div>

</template>

<script>
  import commonJs from '../mixins/common'
  export default {
    name: "review-extendsCom",
    mixins:[commonJs],
    components: {
    },
    data() {
      return {

      }
    },
    methods: {

    }
  }
</script>
<style lang="less" scoped></style>